home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jun 89 / V0098-Re Where's the Prin-Jun89 < prev    next >
Encoding:
Text File  |  1989-07-12  |  1.2 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item    1168652                         30-June-89        18:01
  2.  
  3. From:   CREMER.M                        Cremer, Mike
  4.  
  5. To:     TRADENET                        Tradenet, Michael Bielen, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Where's the Printer?
  10.  
  11. Michael (I assume you wrote this)
  12.  
  13. I ran into the same problem, though not to that degree.  The -43 error is the
  14. fnfErr (file not found) error, which I believe is returned from PrError when
  15. MacApp attempts to PrOpen.  fnfErr gets returned if the printer resource fi
  16. can't be opened, in this case because none was selected.  The error message
  17. could be more meaningful, perhaps, but I do not think any corrective action
  18. should be taken.
  19.  
  20. MacApp, or your application, could conceivably check to see if a printer was
  21. selected by checking the magic strings in the System File.  This could be
  22. extremely bad, however, as the resource id's of those strings is not
  23. guaranteed.  Your program may suddenly stop working correctly under a future
  24. System.  You might try a CatchFailures around your printing code, check to see
  25. if the error is -43, and add a message to the standard alert saying "check to
  26. make sure you have selected a printer" or something similar.
  27.  
  28. Hope this helps.
  29.  
  30. $mike cremer
  31.  
  32.